class Solution {
    public String defangIPaddr(String address) {
        return address.replace(".","[]");
        }


    public static void main(String[] args) {
        Solution o = new Solution();
        o.defangIPaddr("1.1.1.1");
    }
}